<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">
<meta name="author" content="ThinkCMF">
<tc_include file="Public:head" />
<style>
.control-label{
	font-weight: bold;
	float: left;
	width: 70px;
}
</style>
</head>
<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
                                   <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i>个人中心</a></li>
                               </ul>
                               <div class="tab-content">
                                   <div class="tab-pane active" id="one">
                                     <style type="text/css">
.userCenter{ padding:15px; margin:0px;  height:100%;}	
.userCenter .userCenter_left{ float:left; width:200px;}
.userCenter_left img{ width:180px; height:auto; border: solid 1px #999999; border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px;}
.userCenter .userCenter_right{ float:left; width:300px; overflow:hide;}
.userCenter .userCenter_right div{line-height:25px;}
</style>

<div class="userCenter">
	<div class="userCenter_left">
    	  <a href="{:U('profile/avatar')}">
        	<if condition="empty($avatar)">
            <img src="__TMPL__/Public/images/headicon_128.png" class="headicon"/>
            <else/>
            <img src="{:sp_get_user_avatar_url($avatar)}" class="headicon"/>
            </if>
		</a>
    </div>
	<div class="userCenter_right">
	
		<div>昵称：{$user_nicename|default='未填写'}</div>
		<div>注册时间：{$create_time|default='首次登录'}</div>
		<div>上次登录时间：{$last_login_time|default="刚刚"}</div>
		<if condition="$Think.session.user.user_type eq 2">
		<div>账号类型：流量主</div>
		<div>积分：{$available_funds} 
			<span><a href="{:U('user/Money/index')}">明细</a></span>
	   		<span><a href="{:U('user/Money/index',array('act'=>'bank'))}">提现</a></span>
	    </div>
	    <div>还没有绑定微信号 <a href="{:U('user/profile/WeChat')}">前去绑定</a></div> 
	    <div>还没有绑定公众号 <a href="{:U('user/profile/pubWeChat')}">前去绑定</a></div> 
	   <div><a href="{:U('user/task/make')}">进入公众号加粉系统,我要参与任务</a></div>        
    	<else />
    		<div>账号类型：广告主</div>
    	<div>积分：{$available_funds} 
			<span><a href="{:U('user/Money/index')}">明细</a></span>
	   		<span><a href="{:U('user/Money/index',array('act'=>'incharge'))}">充值</a></span>
	   		<span><a href="{:U('user/Money/index',array('act'=>'bank'))}">提现</a></span>
	    </div>
    	<div>还没有绑定公众号 <a href="{:U('user/profile/pubWeChat')}">前去绑定</a></div> 
   		<div>查看服务号资源去 <a href="{:U('user/task/resourceService')}">服务号资源数据库</a></div> 
   		<div>查看 订阅号资源去<a href="{:U('user/task/resourceSubscribe')}">订阅号资源数据库</a></div> 
   		<div>查看 朋友圈资源去<a href="{:U('user/task/resourceFriend')}">朋友圈资源数据库</a></div> 
   		  
   		</if>
    </div>

</div>
  <div style="clear:both"></div>                                 
               
                                   
								  </div>		
                               </div>							
                           </div>
                    </div>
                </div>
              </div>

		<tc_include file="Public:footer" />

	</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
</body>
</html>